package com.hdax.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hdax.entity.CusOpportunity;
import com.hdax.dao.CusOpportunityMapper;
import com.hdax.service.CusOpportunityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 商机表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-03-22
 */
@Service
public class CusOpportunityServiceImpl extends ServiceImpl<CusOpportunityMapper, CusOpportunity> implements CusOpportunityService {

    @Autowired
    private CusOpportunityMapper cusOpportunityMapper;

    @Override
    public IPage<CusOpportunity> findCusOpportunity(IPage<?> page, Map map) {
        return cusOpportunityMapper.findCusOpportunity(page,map);
    }

    @Override
    public CusOpportunity findCusOpportunityById(Integer id) {
        return cusOpportunityMapper.findCusOpportunityById(id);
    }
}
